Skip to content

Limit deserialized cache invalidation headers#10105

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:message-serializer-cache-invalidation-cap
May 15, 2026
Merged

Limit deserialized cache invalidation headers#10105
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:message-serializer-cache-invalidation-cap

Conversation

@ReubenBond

@ReubenBond ReubenBond commented May 15, 2026

Copy link
Copy Markdown
Member

Problem

Message deserialization accepted any number of cache invalidation headers, even though Message caps internally-created cache invalidation headers at 16 entries.

Solution

Cap deserialized cache invalidation headers at Message.MaxCacheInvalidationHeaderEntries while still consuming all serialized entries so the reader remains aligned. Added regression coverage for over-limit deserialization.

Microsoft Reviewers: Open in CodeFlow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ReubenBond ReubenBond enabled auto-merge May 15, 2026 15:10
@ReubenBond ReubenBond added this pull request to the merge queue May 15, 2026
Merged via the queue into dotnet:main with commit 3e5ccff May 15, 2026
62 checks passed
@ReubenBond ReubenBond deleted the message-serializer-cache-invalidation-cap branch May 15, 2026 16:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant